package com.friend.chat.websocket

import com.chad.library.adapter.base.entity.MultiItemEntity
import java.io.Serializable

/**
 * @des type =0 为系统消息 type =1为文字聊天
 * @author batie fancy
 * @date 2022/8/5
 */
data class ChatMessageBean(
     val userId: String,
     var toUid: String,
     var type: Int, //标记 文本，图片，音视频
     var roomType:Int,//标记 单聊 0 ，群聊 1，公众号 2
     var message: Any,
     var dateTime:String?="",
     var messageId:String?="",
     var roomId:String?="",
     //以下仅群聊有
     var fromNickname:String?="",
     var fromHeader:String?="",

) : MultiItemEntity, Serializable  {
     override val itemType: Int
          get() = type
}